package com.supconit.kqfx.web.fxzf.channel.services.Impl;

import com.supconit.kqfx.web.fxzf.channel.dao.ChannelDao;
import com.supconit.kqfx.web.fxzf.channel.entities.Channel;
import com.supconit.kqfx.web.fxzf.channel.services.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChannelServiceImpl implements ChannelService {
    @Autowired
    private ChannelDao channelDao;

    public ChannelServiceImpl() {
    }

    public Channel getById(String arg0) {
        return null;
    }

    public void save(Channel arg0) {
    }

    public void insert(Channel entity) {
        this.channelDao.insert(entity);
    }

    public void update(Channel entity) {
        this.channelDao.update(entity);
    }

    public void delete(Channel entity) {
    }

    public int getCount(Channel channel) {
        return this.channelDao.getCount(channel);
    }

    public void deleteByUserId(Channel channel) {
        this.channelDao.deleteByUserId(channel);
    }

    @Override
    public List<Channel> getAllChannel() {
        return this.channelDao.getAllChannel();
    }
}

